package net.cdsunrise.com.auth.client;

import net.cdsunrise.com.common.entity.SysUser;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: LiuWei
 * @date: Create in 14:39 2018/05/14
 */
@FeignClient(name = "resource-server")
@RequestMapping("user")
public interface UserClient {

    @RequestMapping(value = "get", method = RequestMethod.GET)
    SysUser get(@RequestParam(name = "userName") String userName);
}
